<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="/web/title.css">
<title>title.jsp</title>
<script src="/web/title.js"></script>
<script type="text/javascript">	
	window.onload = function() {	
		setInterval(color, 500);
		tmp = 0;
		var c = ["red","orange","yellow"];		
		function color() {			
			if(tmp>=3){
				tmp=0;
			}
			if(tmp<3){
				document.getElementById("abc").style.color = c[tmp++];
			}			
		}		
	}	
</script>
</head>
<body>
	<div id="abc"><font size ='10' >주대규 홈페이지</font>
		<div id = 'title_div1'>
		<%
			String sessionMid = (String)session.getAttribute("sessionMid");
// 		sessionMid= "aaa";
		%>
		<%
			if(sessionMid==null){
		%>
		<form name= 'frm' method = 'post' action ='./login.jsp'>
			<label>아이디</label><input type = 'text' size ='6' name = 'mid'/>
			<label>암호</label><input type = 'password' size ='6' name = 'pwd'/>
		
			<input type = 'button' value  ='로그인' id = 'btnlogin'>
		</form>
		<%}else{%>
			<label>님 방가</label><input type = 'button' value  ='로그아웃' id = 'btnlogout'>
		
		<%} %>
		</div>
	</div>
</body>
<script>titleInit();</script>
</html>